package com.tju.resource.model;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

@Data
public class TbOutwardConsumables {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 外发ID
     */
    private Long outwardId;

    /**
     * 耗材ID
     */
    private Long consumablesId;

    /**
     * 使用数量
     */
    private Long usageAmount;

    /**
     * 创建者
     */
    private String createBy;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新者
     */
    private String updateBy;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 耗材
     */
    @TableField(exist = false)
    private List<TbConsumables> consumablesList;

    /*耗材实体*/
    @TableField(exist = false)
    private TbConsumables tbConsumables;

    public TbOutwardConsumables() {
    }

    public TbOutwardConsumables(Long outwardId, Long consumablesId,Long usageAmount) {
        this.outwardId = outwardId;
        this.consumablesId = consumablesId;
        this.usageAmount=usageAmount;
    }
}